<style lang="scss">
.layout-error {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>

<template>
  <div class="layout-error">
    <error404 v-if="error.statusCode === 404" />
    <error500 v-else />
  </div>
</template>

<script>
import error404 from "~/components/error-404"
import error500 from "~/components/error-500"
export default {
  name: "Error",
  components: {
    error500,
    error404
  },
  props: ["error"]
}
</script>
